package thread0;

public class Thread0 {
	private String name;

	public Thread0(String name) {
		this.name = name;
	}

	public void start() {
		run();
	}

	public void run() {
		for (int i = 1; i <= 20; i++) {
			System.out.println(name + "=" + i);
		}
	}

	public static void main(String[] args) {
		Thread0 t1 = new Thread0("线程1");
		Thread0 t2 = new Thread0("线程2");
		t1.start();
		t2.start();
	}
}
